<template>
  <div>
    孙子--> $『{{money}}』

    <button @click="useMoney">用钱</button>
  </div>
</template>

<script>
export default {
  name: 'grandson',
  props: {
    money: Number
  },
  methods: {
    useMoney () {
      this.$eventDispatch('costMoney', 100)
    }
  }
}
</script>